#ifndef POINT_H
#define POINT_H

#include <string>
#include <map>
#include <vector>

#include "xmlParser.h"

/*
* point
*   to store point info from config file.
*/
typedef struct point
{
	long pid;
	std::string pn;
	int type;   /* AX:0, DX:1, I2:2, I4:3, R8:4 */
	double value;
} point;

int read_xml(std::string					file, 
			 std::map<std::string, point>	&points,
			 std::map<int, std::string>		&log_point,
			 std::string					&ip, 
			 int							&port, 
			 unsigned int					&node_id);

#endif



